package com.alipay.service.impl;

import com.alipay.pojo.Order;
import com.alipay.service.AliPayService;
import com.alipay.service.Alipay;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 阿里支付service 实现类
 *
 * @author lixin
 * @date 2021/12/4 11:17
 **/
@Service
public class AliPayServiceImpl implements AliPayService {

    @Autowired
    private Alipay alipay;

    @Override
    public String aliPay(Order order) {
        return alipay.pay(order);
    }
}
